package com.coderlin.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <Description> <br>
 *
 * @author Coder_Lin<br>
 * @version 1.0<br>
 * @taskId: <br>
 * @createDate 2021/07/24 9:45 <br>
 * @see com.coderlin.entities <br>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class History {
    /**
     * 主键
     */
    private Integer hid;
    /**
     * Worker类用来映射workerName
     */
    private Worker worker;
    /**
     * sendWaterTime 送水时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date sendWaterTime;
    /**
     * Customer类用来映射customerName
     */
    private Customer customer;
    /**
     * sendWaterCount 送水数量
     */
    private Integer sendWaterCount;
}
